<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 100px;
      height: 100px;
      background-color: pink;
      transition: all 1s linear;
    }

    .box:hover {
      width: 300px;
      height: 200px;
    }

    .box2 {
      width: 100px;
      height: 100px;
      background-color: blue;
      margin: 100px;
      animation: revole 2s linear infinite;
    }

    @keyframes revole {
      0% {
        transform: rotate(0deg) translateY(0px) scale(1);
      }

      50% {
        transform: rotate(180deg) translateY(200px) scale(2);
      }

      100% {
        transform: rotate(360deg) translateY(0px) scale(1);
      }
    }
  </style>
</head>

<body>
  <div class="box"></div>

  <div class="box2"></div>
</body>

</html>